/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectoriented.encapsulation;

/**
 *
 * @author peng
 */
public class TestEncapsulation {
    
    public static void main(String args[])
    {
        Student s = new Student();
        
        s.setFirstName("Jim");
        s.setLastName("Li");
        s.setStudentID("1889026");
        s.setAge(21);
        s.setGPA(3.3);
        
        System.out.println("First Name: "+s.getFirstName());
        System.out.println("Last Name : "+s.getLastName());
        System.out.println("Student ID: "+s.getStudentID());
        System.out.println("Age       : "+s.getAge());
        System.out.println("GPA       : "+s.getGPA());
    }
    
}
